package com.ruoyi.db.pms.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 品牌管理对象 pms_brand
 *
 * @author ruoyi
 * @date 2020-04-22
 */

@ApiModel("品牌管理实体类")
@Data
@EqualsAndHashCode(callSuper=true)
public class PmsBrand extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("品牌商编号")
    private Long id;

    @ApiModelProperty("品牌商名称")
    @Excel(name = "品牌商名称")
    @NotBlank(message = "品牌商名称不能为空")
    @Size(min = 0, max = 255, message = "品牌商名称长度不能超过255个字符")
    private String name;

    @ApiModelProperty("品牌商简介")
    @Excel(name = "品牌商简介")
    @NotBlank(message = "品牌商简介不能为空")
    @Size(min = 0, max = 255, message = "品牌商简介长度不能超过255个字符")
    private String brief;

    @ApiModelProperty("品牌商页的品牌商图片")
    @Excel(name = "品牌商页的品牌商图片")
    @NotBlank(message = "品牌商页的品牌商图片不能为空")
    @Size(min = 0, max = 255, message = "品牌商页的品牌商图片长度不能超过255个字符")
    private String picUrl;

    @ApiModelProperty("显示顺序")
    @Excel(name = "显示顺序")
    private Integer sortOrder;

    @ApiModelProperty("品牌商的商品低价，仅用于页面展示")
    @Excel(name = "品牌商的商品低价，仅用于页面展示")
    private Double floorPrice;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime addTime;

    @ApiModelProperty("逻辑删除")
    @Excel(name = "逻辑删除")
    private Integer deleted;

}
